package com.ccs;



import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.RadioButton;
import android.widget.Spinner;
import android.widget.TextView;
import android.widget.AdapterView.OnItemSelectedListener;

public class idTest2  extends Activity implements OnClickListener {
	
	public String quest;
	public TextView question;
	public ImageView img;
	public int sImg;
	public Button btnNext;
	public Button btnPrev;
	
	public void inTest()
	{
		quest= "question8";
		//sImg=
        
		
		/*multChoice mc= new multChoice();
		mcQuestions=mc.getQuestions();
		mcChoices=mc.getChoices();
        */	
		//getResources().getString(R.string.quest1);
	}

	
	public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        inTest();
        setContentView(R.layout.idform);
        putComp();
        
        //Thread trload= new Thread(new loading(this));
        //trload.start();
        
    }
	public void putComp()
	{
		question=(TextView)findViewById(R.id.IDQuestion);
		question.setText(quest);
		img=new ImageView(this);
		img=(ImageView)findViewById(R.id.imgID);
		btnNext=new Button(this);
		btnPrev=new Button(this);
		btnNext=(Button)findViewById(R.id.idbtnNext);
		btnPrev=(Button)findViewById(R.id.idbtnPrev);
		//img.setImageResource(sImg);
		
		
		btnNext.setOnClickListener(this);
		btnPrev.setOnClickListener(this);
	}
	public void onClick(View v) {
		if(v==btnNext)
		{

			//finish();
			startActivity(new Intent("com.ccs.idTest3"));
		}
		if(v==btnPrev)
		{

			startActivity(new Intent("com.ccs.idTest1"));
		}
	}

}